<?php
/**
 * #Celebrate Shieh
 *             ,%%%%%%%%,
 *           ,%%/\%%%%/\%%
 *          ,%%%\c "" J/%%%
 * %.       %%%%/ o  o \%%%
 * `%%.     %%%%    _  |%%%
 *  `%%     `%%%%(__Y__)%%'
 *  //       ;%%%%`\-/%%%'
 * ((       /  `%%%%%%%'
 *  \\    .'          |
 *   \\  /       \  | |
 *    \\/         ) | |
 *     \         /_ | |__
 *     (___________))))))) 攻城湿
 *
 *        _       _
 * __   _(_)_   _(_) __ _ _ __
 * \ \ / / \ \ / / |/ _` |'_ \
 *  \ V /| |\ V /| | (_| | | | |
 *   \_/ |_| \_/ |_|\__,_|_| |_|
 */
namespace App\Http\Controllers;

use Illuminate\Http\Request;

class CharController extends Controller
{
    /**
     * @param Request $request
     *首页图表信息
     *
     * @return array
     */
    public function char( Request $request )
    {
        return $this->getChar()->CharService($request);
    }

    /**
     * 获取系统信息
     *
     * @return \Illuminate\Http\JsonResponse
     */
    public function getCpuUsage()
    {
        return $this->getChar()->getCpuUsage();
    }
}
